<!DOCTYPE html>
<html>
	<head>
		<!-- meta_viewport -->
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.list{
				/* 开启flex布局 */
				display: flex;
				/* 设置弹性盒子的子元素超出父容器时候是不是自动换行 */
				flex-wrap: wrap;
				
				background-color: lightcyan;
			}
			/* 后代选择器 */
			.list .item{
				width: 200px;
				height: 350px;
				border: 2px solid deeppink;
				margin: 10px;
				padding: 5px;
				background-color: orange;
			}
			
			.user-card {
				display: flex;
				padding: 20px;
				/* 横轴:两端对齐 */
				/*
				justify-content: center
				 justify-content: space-around
				 justify-content: space-between; */
				justify-content: space-between;
				/* 纵轴居中 */
				align-items: center;
			}
		</style>
	</head>
	<body>
		<fieldset id="">
			<legend>容器属性</legend>
			
			<!-- <div class="list">
				<div class="item">item1</div>
				<div class="item">item2</div>
				<div class="item">item3</div>
				<div class="item">item4</div>
				<div class="item">item5</div>
				<div class="item">item6</div>
				<div class="item">item7</div>
				<div class="item">item8</div>
				<div class="item">item9</div>
				<div class="item">item10</div>
				<div class="item">item11</div>
				<div class="item">item12</div>
			</div> -->
		</fieldset>
		
		<fieldset id="">
			<legend>横轴、纵轴的对齐</legend>
			<div class="user-card">
				<img src="img/face.png" >
				<div class="nickname">黄小米</div>
				<div class="position">技术部|前端开发工程师</div>
			</div>
			
		</fieldset>
	</body>
</html>
